package com.yjc.drygoods.cart.feign;

import com.yjc.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author yjc
 * @create 2022-09-21 20:20
 */
@FeignClient("drygoods-product")
public interface ProductFeignService {

    @RequestMapping("/product/skuinfo/info/{skuId}")
    R info(@PathVariable("skuId") Long skuId);

    @GetMapping("/product/skusaleattrvalue/get/skuSaleAttr/")
    R getSkuSaleAttrs(@RequestParam("skuId") Long skuId);
}
